import { ApiProperty } from "@nestjs/swagger";
import { IsDateString, IsOptional, IsString } from "class-validator";

export class UpdateDeliveryDto {
  @IsString()
  @IsOptional()
  @ApiProperty({
    required: false,
    description: "地址",
  })
  address?: string;

  @IsString()
  @IsOptional()
  @ApiProperty({
    required: false,
    description: "联系方式",
  })
  contact?: string;

  @IsDateString()
  @IsOptional()
  @ApiProperty({
    required: false,
    description: "送货日期",
  })
  deliveryDate?: string;
}
